/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.juani.test.model;

import com.liferay.portal.model.ModelWrapper;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link Client}.
 * </p>
 *
 * @author    Juan Martin Ruiz
 * @see       Client
 * @generated
 */
public class ClientWrapper implements Client, ModelWrapper<Client> {
	public ClientWrapper(Client client) {
		_client = client;
	}

	public Class<?> getModelClass() {
		return Client.class;
	}

	public String getModelClassName() {
		return Client.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("clientId", getClientId());
		attributes.put("companyId", getCompanyId());
		attributes.put("userId", getUserId());
		attributes.put("userName", getUserName());
		attributes.put("createDate", getCreateDate());
		attributes.put("modifiedDate", getModifiedDate());
		attributes.put("firstName", getFirstName());
		attributes.put("lastName", getLastName());
		attributes.put("address", getAddress());
		attributes.put("email", getEmail());
		attributes.put("phone", getPhone());
		attributes.put("movil", getMovil());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		Long clientId = (Long)attributes.get("clientId");

		if (clientId != null) {
			setClientId(clientId);
		}

		Long companyId = (Long)attributes.get("companyId");

		if (companyId != null) {
			setCompanyId(companyId);
		}

		Long userId = (Long)attributes.get("userId");

		if (userId != null) {
			setUserId(userId);
		}

		String userName = (String)attributes.get("userName");

		if (userName != null) {
			setUserName(userName);
		}

		Date createDate = (Date)attributes.get("createDate");

		if (createDate != null) {
			setCreateDate(createDate);
		}

		Date modifiedDate = (Date)attributes.get("modifiedDate");

		if (modifiedDate != null) {
			setModifiedDate(modifiedDate);
		}

		String firstName = (String)attributes.get("firstName");

		if (firstName != null) {
			setFirstName(firstName);
		}

		String lastName = (String)attributes.get("lastName");

		if (lastName != null) {
			setLastName(lastName);
		}

		String address = (String)attributes.get("address");

		if (address != null) {
			setAddress(address);
		}

		String email = (String)attributes.get("email");

		if (email != null) {
			setEmail(email);
		}

		String phone = (String)attributes.get("phone");

		if (phone != null) {
			setPhone(phone);
		}

		String movil = (String)attributes.get("movil");

		if (movil != null) {
			setMovil(movil);
		}
	}

	/**
	* Returns the primary key of this client.
	*
	* @return the primary key of this client
	*/
	public long getPrimaryKey() {
		return _client.getPrimaryKey();
	}

	/**
	* Sets the primary key of this client.
	*
	* @param primaryKey the primary key of this client
	*/
	public void setPrimaryKey(long primaryKey) {
		_client.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the client ID of this client.
	*
	* @return the client ID of this client
	*/
	public long getClientId() {
		return _client.getClientId();
	}

	/**
	* Sets the client ID of this client.
	*
	* @param clientId the client ID of this client
	*/
	public void setClientId(long clientId) {
		_client.setClientId(clientId);
	}

	/**
	* Returns the company ID of this client.
	*
	* @return the company ID of this client
	*/
	public long getCompanyId() {
		return _client.getCompanyId();
	}

	/**
	* Sets the company ID of this client.
	*
	* @param companyId the company ID of this client
	*/
	public void setCompanyId(long companyId) {
		_client.setCompanyId(companyId);
	}

	/**
	* Returns the user ID of this client.
	*
	* @return the user ID of this client
	*/
	public long getUserId() {
		return _client.getUserId();
	}

	/**
	* Sets the user ID of this client.
	*
	* @param userId the user ID of this client
	*/
	public void setUserId(long userId) {
		_client.setUserId(userId);
	}

	/**
	* Returns the user uuid of this client.
	*
	* @return the user uuid of this client
	* @throws SystemException if a system exception occurred
	*/
	public java.lang.String getUserUuid()
		throws com.liferay.portal.kernel.exception.SystemException {
		return _client.getUserUuid();
	}

	/**
	* Sets the user uuid of this client.
	*
	* @param userUuid the user uuid of this client
	*/
	public void setUserUuid(java.lang.String userUuid) {
		_client.setUserUuid(userUuid);
	}

	/**
	* Returns the user name of this client.
	*
	* @return the user name of this client
	*/
	public java.lang.String getUserName() {
		return _client.getUserName();
	}

	/**
	* Sets the user name of this client.
	*
	* @param userName the user name of this client
	*/
	public void setUserName(java.lang.String userName) {
		_client.setUserName(userName);
	}

	/**
	* Returns the create date of this client.
	*
	* @return the create date of this client
	*/
	public java.util.Date getCreateDate() {
		return _client.getCreateDate();
	}

	/**
	* Sets the create date of this client.
	*
	* @param createDate the create date of this client
	*/
	public void setCreateDate(java.util.Date createDate) {
		_client.setCreateDate(createDate);
	}

	/**
	* Returns the modified date of this client.
	*
	* @return the modified date of this client
	*/
	public java.util.Date getModifiedDate() {
		return _client.getModifiedDate();
	}

	/**
	* Sets the modified date of this client.
	*
	* @param modifiedDate the modified date of this client
	*/
	public void setModifiedDate(java.util.Date modifiedDate) {
		_client.setModifiedDate(modifiedDate);
	}

	/**
	* Returns the first name of this client.
	*
	* @return the first name of this client
	*/
	public java.lang.String getFirstName() {
		return _client.getFirstName();
	}

	/**
	* Sets the first name of this client.
	*
	* @param firstName the first name of this client
	*/
	public void setFirstName(java.lang.String firstName) {
		_client.setFirstName(firstName);
	}

	/**
	* Returns the last name of this client.
	*
	* @return the last name of this client
	*/
	public java.lang.String getLastName() {
		return _client.getLastName();
	}

	/**
	* Sets the last name of this client.
	*
	* @param lastName the last name of this client
	*/
	public void setLastName(java.lang.String lastName) {
		_client.setLastName(lastName);
	}

	/**
	* Returns the address of this client.
	*
	* @return the address of this client
	*/
	public java.lang.String getAddress() {
		return _client.getAddress();
	}

	/**
	* Sets the address of this client.
	*
	* @param address the address of this client
	*/
	public void setAddress(java.lang.String address) {
		_client.setAddress(address);
	}

	/**
	* Returns the email of this client.
	*
	* @return the email of this client
	*/
	public java.lang.String getEmail() {
		return _client.getEmail();
	}

	/**
	* Sets the email of this client.
	*
	* @param email the email of this client
	*/
	public void setEmail(java.lang.String email) {
		_client.setEmail(email);
	}

	/**
	* Returns the phone of this client.
	*
	* @return the phone of this client
	*/
	public java.lang.String getPhone() {
		return _client.getPhone();
	}

	/**
	* Sets the phone of this client.
	*
	* @param phone the phone of this client
	*/
	public void setPhone(java.lang.String phone) {
		_client.setPhone(phone);
	}

	/**
	* Returns the movil of this client.
	*
	* @return the movil of this client
	*/
	public java.lang.String getMovil() {
		return _client.getMovil();
	}

	/**
	* Sets the movil of this client.
	*
	* @param movil the movil of this client
	*/
	public void setMovil(java.lang.String movil) {
		_client.setMovil(movil);
	}

	public boolean isNew() {
		return _client.isNew();
	}

	public void setNew(boolean n) {
		_client.setNew(n);
	}

	public boolean isCachedModel() {
		return _client.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_client.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _client.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _client.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_client.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _client.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_client.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new ClientWrapper((Client)_client.clone());
	}

	public int compareTo(com.juani.test.model.Client client) {
		return _client.compareTo(client);
	}

	@Override
	public int hashCode() {
		return _client.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.juani.test.model.Client> toCacheModel() {
		return _client.toCacheModel();
	}

	public com.juani.test.model.Client toEscapedModel() {
		return new ClientWrapper(_client.toEscapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _client.toString();
	}

	public java.lang.String toXmlString() {
		return _client.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_client.persist();
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public Client getWrappedClient() {
		return _client;
	}

	public Client getWrappedModel() {
		return _client;
	}

	public void resetOriginalValues() {
		_client.resetOriginalValues();
	}

	private Client _client;
}